It is possible (thank you xm-test) to initiate a grant copy to a page
belonging to a dying domain, the page end up being owned by nobody
which is what the original test asserted.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : z%F3cm%A4%B9U%E5V%AF%19%AF%91%B063%B5e%CC%E2
}
}
}
- BUG_ON(t != PFN_TYPE_NONE && page_get_owner(mfn_to_page(mfn)) != d);
+#ifdef DEBUG
+ if (t != PFN_TYPE_NONE &&
+ (d->domain_flags & DOMF_dying) &&
+ page_get_owner(mfn_to_page(mfn)) != d) {
+ printk("%s: page type: %d owner Dom[%d]:%p expected Dom[%d]:%p\n",
+ __func__, t,
+ page_get_owner(mfn_to_page(mfn))->domain_id,
+ page_get_owner(mfn_to_page(mfn)),
+ d->domain_id, d);
+ BUG();
+ }
+#endif
}
if (t == PFN_TYPE_NONE) {